<!--[if lt IE 9]>
<script type="text/javascript" th:src="@{/authority/js/compat/jquery-compat-3.0.0-alpha1.js}"></script>
<script type="text/javascript" th:src="@{/authority/js/compat/selectivizr-min.js}"></script>
<script>
    if (!Array.isArray) {
        Array.isArray = function (arg) {
            return Object.prototype.toString.call(arg) === '[object Array]';
        };
    }
    String.prototype.trim = function () {
        return this.replace(/(^\s*)|(\s*$)/g, "");
    };
    String.prototype.ltrim = function () {
        return this.replace(/(^\s*)/g, "");
    };
    String.prototype.rtrim = function () {
        return this.replace(/(\s*$)/g, "");
    };

    window._console = window.console;//将原始console对象缓存
    window.console = (function (orgConsole) {
        return {//构造的新console对象
            log: getConsoleFn("log"),
            debug: getConsoleFn("debug"),
            info: getConsoleFn("info"),
            warn: getConsoleFn("warn"),
            exception: getConsoleFn("exception"),
            assert: getConsoleFn("assert"),
            dir: getConsoleFn("dir"),
            dirxml: getConsoleFn("dirxml"),
            trace: getConsoleFn("trace"),
            group: getConsoleFn("group"),
            groupCollapsed: getConsoleFn("groupCollapsed"),
            groupEnd: getConsoleFn("groupEnd"),
            profile: getConsoleFn("profile"),
            profileEnd: getConsoleFn("profileEnd"),
            count: getConsoleFn("count"),
            clear: getConsoleFn("clear"),
            time: getConsoleFn("time"),
            timeEnd: getConsoleFn("timeEnd"),
            timeStamp: getConsoleFn("timeStamp"),
            table: getConsoleFn("table"),
            error: getConsoleFn("error"),
            memory: getConsoleFn("memory"),
            markTimeline: getConsoleFn("markTimeline"),
            timeline: getConsoleFn("timeline"),
            timelineEnd: getConsoleFn("timelineEnd")
        };
        function getConsoleFn(name) {
            return function actionConsole() {
                if (typeof (orgConsole) !== "object") return;
                if (typeof (orgConsole[name]) !== "function") return;//判断原始console对象中是否含有此方法，若没有则直接返回
                return orgConsole[name].apply(orgConsole, Array.prototype.slice.call(arguments));//调用原始函数
            };
        }
    }(window._console));

    $(function () {
        $('html[height100] body.childrenBody[padding10]').css({
            height: ($('html').height() - 25) + 'px',
            width: ($('html').width() - 25) + 'px'
        });
    })
</script>
<![endif]-->
<script>
    /**
     * @return {number} -1 其他， 0 edge， ie版本
     */
    function IEVersion() {
        var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
        var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
        if (userAgent.indexOf("Edge") > -1 && !isIE) return 0; //判断是否IE的Edge浏览器
        if (userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1) return 11;
        if (isIE) {
            var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
            reIE.test(userAgent);
            return parseFloat(RegExp["$1"]);
        } else {
            return -1;//不是ie浏览器
        }
    }

    var browserVersion = IEVersion(),
        browserLessThanIE10 = (browserVersion < 10 && browserVersion !== -1 && browserVersion !== 0);
    if (!browserLessThanIE10) {
        document.write("<script type='text/javascript' src='[[@{/}]]authority/js/jquery-3.3.1.min.js'><\/script>");
    }
</script>